<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="/static/css/topnav.css">
</head>
<body>
<div class="home" style="padding: 1% 1% 1% 1%">
    <a href="/user/get-all-consumer">返回首页</a>
</div>
<div class="back">
    <div class="a">
        <h1>博客</h1>
    </div>
    <c:if test="${not empty byBlogUuidGetNoneHighlightBlogInfo}">
        <div class="neirong">
            <div class="b">
                <table border="0">
                    <form action="/blog/by-blog-uuid-update-blogInfo" method="post">
                        <tr>

                            <td align="right">博客的UUID：</td>
                            <td align="center"><input type="text" class="kuang" name="blogUuid"
                                       value="${byBlogUuidGetNoneHighlightBlogInfo.blogUuid}"
                                       readonly></td>
                        </tr>
                        <tr>
                            <td align="right">标签名：</td>

                            <td align="center">
                                <input type="text" class="kuang" name="tagUuid"
                                       value="${byBlogUuidGetNoneHighlightBlogInfo.tagUuid}" hidden>
                                <input type="text" class="kuang" value="${byBlogUuidGetNoneHighlightBlogInfo.tagName}">
                            </td>

                            </td>
                        </tr>
                        <tr>
                            <td align="right">标题：</td>
                            <td>
                                <input type="text" class="kuang" name="blogTitle"
                                       value="${byBlogUuidGetNoneHighlightBlogInfo.blogTitle}">
                            </td>
                        </tr>
                        <tr>
                            <td align="right">内容：</td>
                            <td>
                                                                    <textarea rows="5" cols="46" name="blogContent"
                                                                              value="${byBlogUuidGetNoneHighlightBlogInfo.blogContent}">
                                                                            ${byBlogUuidGetNoneHighlightBlogInfo.blogContent}
                                                                    </textarea>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">作者：</td>
                            <td align="center">
                                <input type="text" class="kuang"
                                       value="${byBlogUuidGetNoneHighlightBlogInfo.consumerName}">
                            </td>
                        </tr>
                        <tr>
                            <td align="right">加精：</td>
                            <td align="center">
                                <select name="highlight">
                                    <c:choose>
                                        <c:when test="${byBlogUuidGetNoneHighlightBlogInfo.highlight == 0}">
                                            <option value="0">未加精</option>
                                        </c:when>
                                        <c:when test="${byBlogUuidGetNoneHighlightBlogInfo.highlight == 1}">
                                            <option value="1">已加精</option>
                                        </c:when>
                                        <c:when test="${byBlogUuidGetNoneHighlightBlogInfo.highlight == 2}">
                                            <option value="2">公告栏</option>
                                        </c:when>
                                    </c:choose>
                                    <option>请选择</option>
                                    <option value="0">未加精</option>
                                    <option value="1">已加精</option>
                                    <option value="1">公告栏</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">博客状态：</td>
                            <td align="center">
                                <select name="blogStatus">
                                    <c:choose>
                                        <c:when test="${byBlogUuidGetNoneHighlightBlogInfo.blogStatus == 0}">
                                            <option value="0">未删除</option>
                                        </c:when>
                                        <c:when test="${byBlogUuidGetNoneHighlightBlogInfo.blogStatus == 1}">
                                            <option value="1">已删除</option>
                                        </c:when>
                                    </c:choose>
                                    <option>请选择</option>
                                    <option value="0">未删除</option>
                                    <option value="1">已删除</option>
                                </select>
                        </tr>
                        <tr>
                            <td align="right">发表时间：</td>
                            <td align="center">
                                    ${byBlogUuidGetNoneHighlightBlogInfo.blogPostDate}

                            </td>
                        </tr>

                        <tr>
                            <td align="right">最后修改时间：</td>
                            <td>
                                    ${byBlogUuidGetNoneHighlightBlogInfo.tableUpdateDate}

                            </td>
                        </tr>
                        <tr align="center">
                            <td colspan="2">
                                <input type="submit" value="提交" class="anniu">
                            </td>
                        </tr>
                    </form>
                </table>
            </div>
        </div>
    </c:if>
</div>

</body>
<style>
    .home a {
        font-size: 30px;
        text-decoration: none;
    }

    div.back {
        padding: 2% 0% 20% 35%;
        width: 40%;
        /*margin: 35px 60px;*/
    }

    div.a {
        border-style: solid;
        border-color: deeppink;
        border-radius: 15px;
        text-align: center;
    }

    body {
        background-image: url("/static/img/kb.jpg");
    }

    table {
        /*background-color: FFAEB9;*/
        color: deeppink;
    }

    td {
        padding: 5px 5px 5px 5px;
        font-weight: bold;
    }

    h1 {
        color: deeppink;
    }

    .kuang {
        border-radius: 15px;
        padding: 6px 61% 6px 0px;
        border: gray solid 1px;
        background-color: #F5FFFA;
        text-align: center;
    }

    select{
        border-radius: 7px;
        padding: 6px 84% 6px 0px;
        border: gray solid 1px;
        background-color: #F5FFFA;
        text-align: center;
    }
     textarea {
        border-radius: 7px;
        padding: 6px 80px 6px 10px;
        border: gray solid 1px;
        background-color: #F5FFFA;
    }

    input[type="file"] {
        border-radius: 7px;
        padding: 6px 10px 6px 10px;
        border: gray solid 1px;
        background-color: #F5FFFA;
    }

    .anniu {
        border-radius: 7px;
        padding: 6px 50px;
        background-color: #F5FFFA;
        font-size: 14px;
        font-weight: bold;
    }

    .neirong {
        margin-top: 10px;
        border-style: double;
        border-color: #ffffff;
        border-radius: 15px;
        border-width: medium;
        padding-bottom: 9px;
    }

    input[type="submit"] {

    }
</style>
</html>
